import './assets/font/inconfont/iconfont.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus  from 'element-plus'

import locale from 'element-plus/es/locale/lang/zh-cn' //中文

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import './assets/css/common.less'
import App from './App.vue'
import router from './router'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.use(createPinia().use(piniaPluginPersistedstate))
app.use(router)
app.use(ElementPlus,{locale})



app.mount('#app')
